-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade llvm version to 17.0.6 #11301
upgrade llvm version to 17.0.6 #11301
Conversation
b422879
to
4f7986c
Compare
4d3ef61
to
a05ac7f
Compare
@trns1997 could we keep the default math config(CONFIG_LIBM_TOOLCHAIN)? |
@xiaoxiang781216 we could but then it won't compile unless you use the math library from nuttx. Otherwise we need to figure out a solution for the tool chain math lib with llvm. |
what's error report from toolchain's math library? |
I explained the issue over here : #11269 (comment) If you have any other suggestion i am open to them. |
let's remove
|
a05ac7f
to
74d0ca0
Compare
@trns1997 why the ci pass now without wchar.h error? |
Ummm I didnt expect the CI to pass. I am guessing it is because we do not have any LIBCXX specific tests or LIBM is always activated when compiling with LIBCXX |
I was thinking of creating a patch file that we apply when compiling. But depends on what we want to do. Should we merge this and keep a note somewhere saying if you face our problem activate the LIBM option? |
many defconfig doesn't use the internal math library, here is the list:
|
AAAAAAAHHHHHH wait I know what happening i forgot to push the default LIBCXX version. |
b5942b0
to
ea9fd5c
Compare
let's wait ci result. @trns1997 could you send the change to llvm community, so we can remove the patch when llvm release the new package. |
ea9fd5c
to
f91301c
Compare
both macOS and Linux report __mbstate_t error:
We should avoid [_]mbstate_t.h from host get included. |
hey @xiaoxiang781216 ok so we have 2 problems. First problem is the following:
This i figured out why. Basically i pulled the docker image and found the the gcc version 11 and for newer llvm versions require gcc version >= 12. I updated the gcc version in my local container to test and it resolved this specific issue. So we will need to update the docker image (not really sure how to do it for nuttx). The second problem that you mention, I looked into the code of
The unix build will always fail because it is able to find |
@trns1997 you can rebase your patch again, all ci issue should be fixed. |
c608ffa
to
2040fe2
Compare
@trns1997 could you rebase the change again? All ci issues are fixed. |
2040fe2
to
fcb235d
Compare
fcb235d
to
3f25b3f
Compare
3f25b3f
to
a4f2c51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@xiaoxiang781216 we the following error:
Can I modify the apps so that we no longer have the deprecated error? |
hi @trns1997 let's try this trns1997#1 with CI |
sure. |
hi @xiaoxiang781216 |
be40b69
to
3386c9d
Compare
Sorry I was out of town. I guess you guys have opted to disable @xiaoxiang781216 any idea to why the linker might be unable to find the following:
|
Yes.
NutttX's libc doesn't implment getwc/ungetwc yet, @extinguish will provide an implementation soon. |
Alright @xiaoxiang781216 could you ping the PR here, that way once it's merged i can rebase and run the CI again. |
Sure. |
Here is the pr: #11408 |
utils cmake build file can work with libcxx 17.0.6 Signed-off-by: Xiang Xiao <[email protected]>
3386c9d
to
3f3e9af
Compare
Summary
Related to #11269
Upgrade to LLVM version 17.0.6
Also set Nuttx libm as default math lib to prevent compilation failures
Tested with gcc version 12.3.Rel1 and 13.2.rel1
Impact
Testing